package mirrormonkey.core.member;

import mirrormonkey.framework.entity.StaticEntityData.MemberDataKey;

import com.jme3.network.MessageConnection;

public class SearchKey implements MemberDataKey {

	private final MessageConnection connection;

	private final Object[] parameters;

	public SearchKey(MessageConnection connection, Object[] parameters) {
		this.connection = connection;
		this.parameters = parameters;
	}

	@Override
	public int hashCode() {
		return parameters.length * PresentKey.class.hashCode();
	}

	public Object[] getParameters() {
		return parameters;
	}

	public MessageConnection getConnection() {
		return connection;
	}

}
